import moment from 'moment';
export default {
  
    formatTime: (value, pattern = 'YYYY-MM-DD HH:mm:ss') => {
        return !value ? '' : moment(value).format(pattern)
    },
    formatDate: (value, pattern = 'YYYY-MM-DD') => {
        return !value ? '' : moment(value).format(pattern)
    },
   
}